package demo.service;

import demo.mapper.UserInfoMapper;
import demo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import java.util.List;
//负责调用mapper
@Service
public class UserSevice {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public List<UserInfo> getUserInfo() {
        return userInfoMapper.queryUserInfo();
    }
}
